package com.liudadan.service.impl;

import com.liudadan.service.StudentService;
import com.liudadan.service.Top;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
public class TopImpl implements Top {
    @Autowired
    private StudentService studentService;
    @Transactional
    @Override
    public void change() {
     studentService.changeName();
     studentService.changeGender();
    }
}
